#include "PhysicsObjects.h"
#pragma once
//Implement Railgun bolt here: :)
#define RAIL_LIFE 10.f
#define RAIL_SPEED 500.f

class RailBolt : public BaseIndexedGraphicalEntity
{
private:
	float LaunchSpeed;
	D3DXVECTOR3 Angles;
	bool IsLaunched;
	bool IsActive;
	float LaunchTime;

public:
	PhysicsBox *BoundingBox;
	RailBolt();
	RailBolt(IDirect3DDevice9 *nDevice, float nLaunchSpeed, D3DXVECTOR3 nAngles);
	~RailBolt();

	void Launch( float Time );
	void Update( float dt );
	void Render( void );

	bool GetIsLaunched( void );
	void SetIsActive(bool nIsActive);
	bool GetIsActive( void );
	D3DXVECTOR3 GetAngles( void );
	float GetLaunchTime( void );
	float GetLaunchSpeed( void );

	void SetAngles(D3DXVECTOR3 nAngles);

};